Nevron Open Vision Documentation
Nevron.Nov Namespace / NAggregatePromise Class / Race Method / Race<TResult>(INIterable<INPromise>) Method


In This Topic
    Race<TResult>(INIterable<INPromise>) Method
    In This Topic
    The Race method returns a promise that fulfills or rejects as soon as one of the promises fulfills or rejects, with the value or reason from that promise.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Race(Of TResult)( _
       ByVal promises As INIterable(Of INPromise) _
    ) As NPromise(Of TResult)
    'Usage
     
    
    Dim promises As INIterable(Of INPromise)
    Dim value As NPromise(Of TResult)
     
    value = NAggregatePromise.Race(Of TResult)(promises)

    Parameters

    promises

    Type Parameters

    TResult
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also